package com.engine4cloud.tdf.supervision.dto.result;

import com.engine4cloud.tdf.common.core.constant.enums.NormalAuditActionStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 迁居
 *
 * @author wenjie
 * @date 2024-05-30 15:21:31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "迁居-请求对象")
public class SpMigrateResultDTO extends CreateTimeResultDTO {

    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 矫正人员编号
     */
    @Schema(description = "矫正人员编号")
    private String rybh;

    /**
     * 流程编号
     */
    @Schema(description = "流程编号")
    private String lcbh;

    /**
     * 申请时间
     */
    @Schema(description = "申请时间", example = "2024-05-01 00:00:00")
    private LocalDateTime sqsj;

    /**
     * 原居住地（乡镇、街道）名称
     */
    @Schema(description = "原居住地（乡镇、街道）名称")
    private String yjzdxzmc;

    /**
     * 原居住地明细
     */
    @Schema(description = "原居住地明细")
    private String yjzdmx;

    /**
     * 迁入地（区县）
     */
    @Schema(description = "迁入地（区县）")
    private String qrdqx;

    /**
     * 迁入地（区县）名称
     */
    @Schema(description = "迁入地（区县）名称")
    private String qrdqxmc;

    /**
     * 迁入地（乡镇、街道）名称
     */
    @Schema(description = "迁入地（乡镇、街道）名称")
    private String qrdxzmc;

    /**
     * 迁入地明细
     */
    @Schema(description = "迁入地明细")
    private String qrdmx;

    /**
     * 迁入地受委托的司法所
     */
    @Schema(description = "迁入地受委托的司法所")
    private Long qrdswtdsfs;

    /**
     * 迁入地受委托的司法所名称
     */
    @Schema(description = "迁入地受委托的司法所名称")
    private String qrdswtdsfsmc;

    /**
     * 变更理由
     */
    @Schema(description = "变更理由", example = "买了大别墅")
    private String bgly;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 审核动作
     */
    @Schema(description = "审核动作", example = "CREATE")
    private NormalAuditActionStatusEnum preAction;

    /**
     * 原居住地（乡镇、街道）
     */
    @Schema(description = "原居住地（乡镇、街道）", example = "[\"460000\",\"46000A\",\"469006\",\"36327\"]")
    @Size(min = 2)
    private List<String> sourceAreaList;

    /**
     * 迁入地（乡镇、街道）
     */
    @Schema(description = "迁入地（乡镇、街道）", example = "[\"460000\",\"46000A\",\"469006\",\"36328\"]")
    @Size(min = 2)
    private List<String> targetAreaList;

    /**
     * 文书材料
     */
    @Schema(description = "文书材料", example = "[{\"name\": \"张三迁居申请.doc\",\"url\": \"/users/张三迁居申请.doc\"}]")
    private List<JzdxFileResultDTO> instrumentList;
}